package com.oreilly.ez.entity;


import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.math.BigDecimal;


/**
 * 报名班级(课程)
 */
@Data
@Entity
@Table(name = "study")
@ToString
public class Study  extends BaseEntity {


  // new field...

    //学生
    @ManyToOne
    @JoinColumn(name = "student_id")
    private Enrollment enrollment;

    //班级
    @ManyToOne
    @JoinColumn(name = "cterm_id")
    private CourseTerm courseTerm;

    //是否支付
    @Column(name = "pay_flag")
    private Boolean payFlag;


    //费用
    private BigDecimal fee;


    //应交费用
    @Column(name = "pay_fee")
    private BigDecimal payFee;



}
